@import url('transition/index.less');
@import url('var/index.less');
@import url('public.less');
@import url('ant/index.less');
@import url('./theme.less');

input:-webkit-autofill {
  box-shadow: 0 0 0 1000px white inset !important;
}

:-webkit-autofill {
  transition: background-color 5000s ease-in-out 0s !important;
}

html {
  overflow: hidden;
  text-size-adjust: 100%;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: visible;
  overflow-x: hidden;

  &.color-weak {
    filter: invert(80%);
  }

  &.gray-mode {
    filter: grayscale(100%);
    filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
  }
}

a:focus,
a:active,
button,
div,
svg,
span {
  outline: none;
}

/** 打包后ul li样式有问题 在这里覆盖 */
html[data-theme='dark'] {
  ul li {
    border: none;
  }

  ul li:hover {
    color: inherit !important;
    border: none;
    box-shadow: none;
  }

  .ant-list-split .ant-list-item {
    border-bottom: 1px solid #303030;
  }

  /* stylelint-disable-next-line comment-empty-line-before */
  /** 日期输入框 */
  .ant-picker-input > input {
    border: none;
  }

  .ant-picker-input > input:focus {
    color: inherit !important;
    box-shadow: none;
  }
}
